import React from 'react';
import styles from './index.less';
import { history, formatMessage, useIntl, getDvaApp } from 'umi';
import { Button } from 'antd';

export default props => {
  const intl = useIntl();
  // 全局获取DvaApp
  console.log(getDvaApp);
  return (
    <div>
      <span style={{marginRight:"20px"}}>我是app1 的page2页面</span>

      <Button type="primary" onClick={() => { history.push('/page1') }}>跳转1</Button>
    </div>
  );
};
